{% load main_tags %}
<li class="todo {%if entity.done%}done{%endif%} " id='{{entity.id}}'>
<span class="todoleft"><input type='checkbox' value='1' {%if entity.done%}checked{%endif%}>
{%autoescape off%}
{%if entity.category%}
{{entity.priority|getpri:entity.category.geticon}}
{%else%}
{{entity.priority|getpri}}
{%endif%}
{%endautoescape%}
</span>
<div class='todocontent right' title="{{entity.title}}">
	<a href="javascript://">{{entity.title|slice:":45"}}{%if entity.title|length > 45%}...{%endif%}</a> 
<a class="endelete" href="javascript://" id='{{entity.id}}'>
	<div class='fd right'><span class="ui-icon ui-icon-closethick"></span></div>
</a>
<br />
<span class="mini quiet">
	{{entity.datetime|local_time:request|date}} {{entity.datetime|time:"H:i"}}{%if entity.till_date%} <b>&gt</b> {{entity.till_date|date}}{%endif%}</span>
</div>
</li>
